﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsuarioAnonimo.aspx.cs" Inherits="CongregacaoOs.WebForm.Cadastros.NewUser.UsuarioAnonimo" %>

<%@ Register Src="~/Cadastros/MessageWindow.ascx" TagPrefix="uc1" TagName="MessageWindow" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Usuário Anônimo</title>
    <link href="../dock/jqueryui/jquery-ui-1.8.23.custom.css" rel="stylesheet" />


    <link href="../dock/style/all-examples.css" rel="stylesheet" />
    <link href="../dock/style/stack-example3.css" rel="stylesheet" />
    <link href="../dock/style/dock-example1.css" rel="stylesheet" />
    <link href="../dock/style/dock-example2.css" rel="stylesheet" />
    <link href="../dock/style/layout1.css" rel="stylesheet" />
    <link href="../dock/style/layout2.css" rel="stylesheet" />

    <script src="../dock/jquery/jquery-1.8.0.min.js"></script>
    <script src="../dock/jqueryui/jquery-ui-1.8.23.custom.min.js"></script>

    <script src="../dock/script/fisheye-iutil.min.js"></script>
    <script src="../dock/script/dock-example1.js"></script>
    <script src="../dock/script/jquery.jqDock.min.js"></script>
    <script src="../dock/script/stack-1.js"></script>

    <script type="text/javascript">

        $(document).ready(function () {
            var activeIndex = parseInt($('#<%=hfIndexAccordion.ClientID %>').val());
            $("#accordion").accordion({
                collapsible: true,
                autoHeight: false,
                navigation: true,
                active: activeIndex,
                change: function (event, ui) {
                    var index = $(this).children('h3').index(ui.newHeader);
                    $('#<%=hfIndexAccordion.ClientID %>').val(index);
                }
            });
        });
        $(function () {
            $("#tabs").tabs();
        });





    </script>
    <script src="../../Scripts/Mascaras.js"></script>
    <link href="../../Content/NewTheme/gridView.css" rel="stylesheet" />

    <style type="text/css">
        html {
            font-size:small;
            zoom:95%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="scriptNewUser" runat="server"></asp:ScriptManager>

        <div class="wrap">


            <div id="accordion">
                <h3><a href="#">Consultar</a></h3>
                <div>
                    <asp:Panel ID="painelCadastro" runat="server" Style="font-weight: 700">
                        <asp:HiddenField ID="hdID" runat="server" />
                        <asp:HiddenField ID="hfIndexAccordion" runat="server" />

                        <label>Nome</label>
                        <asp:TextBox ID="txtNome" Width="100%" runat="server"></asp:TextBox><br />

                        <label>Email</label>
                        <asp:TextBox ID="txtEmail" Width="100%" runat="server"></asp:TextBox><br />

                        <label>Celular</label>
                        <asp:TextBox ID="txtCelular" Width="100%" runat="server" onkeyup="formataTelefone(event)"></asp:TextBox><br />

                        <label>Telefone</label>
                        <asp:TextBox ID="txtTelefone" Width="100%" onkeyup="formataTelefone(event)" runat="server"></asp:TextBox><br />
                        <br />
                        <label>Regional</label><br />
                        <asp:DropDownList ID="dropRegional" runat="server" DataTextField="regional" DataValueField="idRegional" Height="25px" Width="285px" AutoPostBack="True" OnSelectedIndexChanged="dropRegional_SelectedIndexChanged" OnDataBound="dropRegional_DataBound"></asp:DropDownList>
                        <br />
                        <label>Distrital</label><br />
                        <asp:DropDownList ID="dropDistrital" runat="server" DataTextField="distrital" DataValueField="idDistrital" Height="25px" Width="285px" AutoPostBack="True" OnSelectedIndexChanged="dropDistrital_SelectedIndexChanged" OnDataBound="dropDistrital_DataBound"></asp:DropDownList>
                        <br />
                        <label>Administração</label><br />
                        <asp:DropDownList ID="dropAdministracao" runat="server" DataTextField="Adm" DataValueField="idAdm" Height="25px" Width="285px" AutoPostBack="True" OnSelectedIndexChanged="dropAdministracao_SelectedIndexChanged" OnDataBound="dropAdministracao_DataBound"></asp:DropDownList>
                        <asp:RequiredFieldValidator ID="valdAdm" BackColor="Red" ControlToValidate="dropAdministracao" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                        <br />
                        <label>Setor</label><br />
                        <asp:DropDownList ID="dropSetor" runat="server" DataTextField="nome" DataValueField="idSetor" Height="25px" Width="285px" AutoPostBack="True" OnSelectedIndexChanged="dropSetor_SelectedIndexChanged" OnDataBound="dropSetor_DataBound">
                        </asp:DropDownList>
                        <br />
                        <label>Cargo</label><br />
                        <asp:DropDownList ID="dropCargo" runat="server" DataTextField="cargo" DataValueField="idCargo" Height="25px" Width="285px" OnDataBound="dropCargo_DataBound">
                        </asp:DropDownList>
                        <br />
                        <label>Cidade</label><br />
                        <asp:DropDownList ID="dropCidade" runat="server" DataTextField="cidade" DataValueField="idCidade" Height="25px" Width="285px" AutoPostBack="True" OnSelectedIndexChanged="dropCidade_SelectedIndexChanged" OnDataBound="dropCidade_DataBound"></asp:DropDownList>
                        <br />
                        <label>Comum</label><br />
                        <asp:DropDownList ID="dropComum" runat="server" DataTextField="Igreja" DataValueField="idIgreja" Height="25px" Width="285px" OnDataBound="dropComum_DataBound"></asp:DropDownList>
                        <br />
                        <br />
                        <hr />
                        <div id="tabs">
                            <ul>
                                <li><a href="#tabs-1">Cadastro Usuário</a></li>
                            </ul>
                            <div id="tabs-1">

                                <label>Usuário</label>
                                <asp:TextBox ID="txtUsuario" Width="100%" runat="server"></asp:TextBox>

                                <label>Senha</label>
                                <asp:TextBox ID="txtSenha" Width="100%" TextMode="Password" runat="server"></asp:TextBox>

                                <label>Confirme a Senha</label>
                                <asp:TextBox ID="txtSenhaConfirm" Width="100%" TextMode="Password" runat="server"></asp:TextBox>

                                <label>Lembrete da senha</label>
                                <asp:TextBox ID="txtLembrete" Width="100%" runat="server"></asp:TextBox>

                                <%--                                <label>Tipo Usuário</label>
                                <br />
                                <asp:DropDownList runat="server" ID="dropRoles" OnDataBound="dropRoles_DataBound" Height="25px" Width="285px"></asp:DropDownList>--%>
                            </div>
                        </div>


                        <br />
                        <div style="float: right;">
                            <asp:Button ID="btnSalvar" Width="150px" Height="50px" runat="server" Text="Salvar" OnClick="btnSalvar_Click" ValidationGroup="CADASTRO" />
                        </div>
                    </asp:Panel>
                </div>
                <h3><a href="#">Voltar para o Login !!!</a></h3>
                <div>
                    <center>
                    <div >
                            <asp:Button ID="btnVoltar" Width="150px" Height="50px" runat="server" Text="Voltar para o Login  " ValidationGroup="CADASTRO" OnClick="btnVoltar_Click" />
                    </div>
                    </center>
                </div>
            </div>
        </div>
        <uc1:MessageWindow runat="server" ID="MessageWindow" />

    </form>
</body>
</html>
